package com.snowwolf.user.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/2/24 10:07
 * @modified by:
 * @versions：0.1.0
 */
@Table(name="tb_user")
@Entity
@Data
@DynamicUpdate
@DynamicInsert
public class UserEo {
    @Id
    @Column(name = "id")
    private Long id;
    @Column(name = "user_name")
    private String userName;
    @Column(name = "type")
    private Integer type;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;
}
